do_move_region_bits_on_impl needs to copy from overlapping native windows too
authorAlexander Larsson <alexl@redhat.com>
Tue, 20 Jan 2009 21:29:19 +0000 (22:29 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:20 +0000 (10:15 +0200)
commitdf4f4c14c7db72fbe003c3c122efc6ae46001fd5
tree7a4f69e95c9ec80b5bec4dbb9a4c3b812db7cbfd
parent6b15e248fae1166d7701becb015eb9c860af57d9
do_move_region_bits_on_impl needs to copy from overlapping native windows too

It can happen that another native window is re-shaped over the region to
be moved, this will not destroy the data (since we're unsetting the background
when we reshape), but it will mean we need to read from this window.

We already used INCLUDE_INFERIORS, but that only handle subwindows. We fix
this by doing the copy on the toplevel, offsetting the copy to compensate for
this.
gdk/gdkwindow.c